/*
 * This class is for compositePattern method，it implements SecurityCompositePatternComponent,inside the operations,
 * it ask for  SecurityCompositePatternComponent.
 * 
 * Leaf couldn't do any operation to its children because it have no child.
 * 
 * public:
 * 		public String operation(SecurityCompositePatternComponent c) ;
 * 		public String add(SecurityCompositePatternComponent c);
 * 		public String remove(SecurityCompositePatternComponent c);
 * 		public String update(SecurityCompositePatternComponent c); 
 */
package compositePattern;

public class SecurityCompositePatternLeaf implements SecurityCompositePatternComponent{
	
	//just need to override the method from interface,it dosen't have any unsafe method
	@Override
	public String operation(SecurityCompositePatternComponent c) {
		return "I am the leaf of SecurityCompositePanttern";
	}

}
